<template>
  <el-pagination
    @size-change="handleSizeChange"
    @current-change="handleCurrentChange"
    :current-page="currentPage"
    :page-sizes="[20, 50, 100, 200]"
    :page-size="pageSize"
    layout="total, sizes, prev, pager, next, jumper"
    :total="totalCount"
  ></el-pagination>
</template>

<script>
export default {
  props: ["totalCount", "pageSize", "currentPage"],
  methods: {
    handleSizeChange(res) {
      this.$emit("handleSizeChange", res);
    },
    handleCurrentChange(res) {
      this.$emit("handleCurrentChange", res);
    }
  }
};
</script>

<style>
</style>
